package com.chuang.bootplus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;
import com.chuang.bootplus.base.database.EntityBase;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Objects;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2021-07-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="UserInfo对象", description="")
public class UserInfo extends EntityBase {

    public UserInfo(Long id, String openid) {
        this.id = id;
        this.appId = openid;
    }

    public UserInfo() {
    }

    /**
     * 当作openId
     */
    private String appId;

    /**
     * 头像
     */
    @TableField(value = "avatar_url")
    private String avatarUrl;

    /**
     * 个性签名
     */
    private String message;

    /**
     * 昵称
     */
    @TableField(value = "nick_name")
    private String nickName;

    @TableField(value = "real_name")
    private String realName;

    private Integer sex;

    private String phone;

    private Integer carbonBean;

    private String address;
}
